package com.thb.pay.api.payment.fallback;

import com.thb.pay.api.payment.PayChannelAccountServiceApi;
import com.thb.pay.api.payment.vo.req.PayChannelAccountPageReq;
import com.thb.pay.api.payment.vo.req.PayChannelAccountReq;
import com.thb.pay.api.payment.vo.resp.PayChannelAccountVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class PayChannelAccountServiceApiFallbackFactory implements FallbackFactory<PayChannelAccountServiceApi> {


    @Override
    public PayChannelAccountServiceApi create(Throwable throwable) {
        return new PayChannelAccountServiceApi() {
            @Override
            public PageResult<PayChannelAccountVo> findPage(PayChannelAccountPageReq pageReq) {
                return null;
            }

            @Override
            public List<PayChannelAccountVo> findAllList() {
                return null;
            }

            @Override
            public List<PayChannelAccountVo> findListByChannelId(Long channelId) {
                return null;
            }

            @Override
            public void add(PayChannelAccountReq payChannelAccountReq) {

            }

            @Override
            public void update(PayChannelAccountReq payChannelAccountReq) {

            }


            @Override
            public PayChannelAccountVo getById(Long id) {
                return null;
            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}